<script>
	export default {
		globalData:{
			// userInfo:{},
			account:null,
			countryName:null
		},
		onLaunch: function() {
			uni.$on('login', account=>{
				// setTimeout(()=>{
					this.globalData.account = account;
					console.log('Logged in account',this.globalData.account);
				// },1000);
			})
			uni.$on('click',countryName =>{
				this.globalData.countryName = countryName;
			})
			console.log('App Launch')
			// uni.setTabBarBadge({
			// 	index:1,
			// 	text:25
			// })
			// uni.setTabBarRedDot({
			// 	index:2
			// })
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	
	/*每个页面公共css */
	@import "common/style/common-style.scss"
</style>
